package com.mxx.common.core;

import com.mxx.common.exception.UnImplementedException;


/**
 * @Auther: Mr. Zeng
 * @Date: 2020/6/6 17:30
 * @Description: 暂无描述
 */
public class EmptyFunction {

    public static <T, R> R EMPTY_FUNCTION(T t) {
        throw new UnImplementedException(" undefined function");
    }


    public static <T> T EMPTY_SUPPLIER() {
        throw new UnImplementedException(" undefined  supplier");
    }

    public static <T> void EMPTY_CONSUMER(T t) {
        throw new UnImplementedException(" undefined  consumer");
    }

    public static <T> T NULL_FUNCTION(T t) {
        return t;
    }

    public static <T> T NULL_SUPPLIER() {
        return null;
    }

    public static <T> T ZERO_SUPPLIER() {
        return null;
    }

    public static <T> void NULL_CONSUMER(T t) {
    }
}
